package cn.wei.reallyenjoy.diary.service;

import cn.wei.reallyenjoy.common.entity.Diary;
import cn.wei.reallyenjoy.diary.pojo.vo.DiaryIndexVO;
import cn.wei.reallyenjoy.diary.pojo.vo.WriteDiaryVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 日记表 服务类
 * </p>
 *
 * @author Wei
 * @since 2021-11-28
 */
public interface DiaryService extends IService<Diary> {

    List<DiaryIndexVO> getDiaryList();

    void updateDiaryPreferById(Long diaryId, Boolean status);

    List<DiaryIndexVO> getDiaryByUserId(Long userId);

    List<DiaryIndexVO> CollectionByUid(Long userId);

    int deleteDiaryByUidAndDiaryId(Long userId, Long diaryId);

    void addDiary(WriteDiaryVO writeDiaryVO);

}
